package ar.edu.utn.frsf.tpae.a2012.g02.mockDao;

import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

import ar.edu.utn.frsf.tpae.a2012.g02.dao.GenericDAO;

public class GenericMockDAO<E> implements GenericDAO<E> {

	public E saveOrUpdate(E entity) {
		Logger.getLogger("GenericMockDAO").log(Level.ALL, "Entro al saveOrUpdate de GenericMockDAO");
		return entity;
	}

	public boolean delete(E entity) {
		Logger.getLogger("GenericMockDAO").log(Level.ALL, "Entro al delete de GenericMockDAO");
		return true;
	}

	public List<E> getAll() {
		Logger.getLogger("GenericMockDAO").log(Level.ALL, "Entro al getAll de GenericMockDAO");
		return new ArrayList<E>();
	}

	public E getById(int id) {
		Logger.getLogger("GenericMockDAO").log(Level.ALL, "Entro al getById de GenericMockDAO");
		return null;
	}

}
